import 'dart:math';

extension YLNum on num {
  double toYLPrecision(int length) {
    double mod = pow(10, length.toDouble()) as double;
    var result = (this * mod).round().toDouble() / mod;
    return result;
  }
}
